using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Cube : MonoBehaviour//移动
{
    public float speed = 10;
    // Start is called before the first frame update
    void Update()
    {

        float v = Input.GetAxis("Vertical");
        float h = Input.GetAxis("Horizontal");

        Debug.Log(": " + h + ":" + v);
        transform.Translate(h * speed * Time.deltaTime, 0, v * speed * Time.deltaTime);
    }

    // Update is called once per frame

}
